import 'package:flutter/material.dart';
import '../widgets/AppColors.dart';

class SystemItem extends StatelessWidget {
  const SystemItem({super.key, required this.title});
  final String title;

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.all(15.0),
      margin: const EdgeInsets.only(left: 15, right: 15),
      height: 56,
      decoration: BoxDecoration(
        color: AppColors.cardColor, // 背景色
        borderRadius: BorderRadius.circular(8.0),
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween, // 使内容两端对齐
            children: [
              Row(
                children: [
                  Text(
                    title,
                    style: TextStyle(
                        fontSize: 16,
                        fontWeight: FontWeight.bold,
                        color: AppColors.textPrimary),
                  ),
                ],
              ),
              const Align(
                alignment: Alignment.center,
                child:
                    Image(image: AssetImage('assets/images/setting/push.png')),
              ),
            ],
          ),
        ],
      ),
    );
  }
}
